.attachments-tab {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 5px;
    width: 100%;
    height: 100%;

    .header {
        display: flex;
        grid-row: 1;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--divider-color);
        padding: 5px;
        overflow: hidden;

        .ant-space-compact {
            flex: 0 0 auto;
            margin-right: 5px;

            &.right {
                margin-left: auto;
            }
        }
    }
    .content {
        grid-row: 2;
        padding: 5px;
        overflow: auto;

        .loading {
            display: flex;
            justify-content: end;
            align-items: end;
            width: 50%;
            height: 50%;
        }

        .attachments-list {
            width: 100%;
            overflow: hidden;

            .attachment {
                border: solid 1px var(--divider-color);
                border-radius: 5px;
                padding: 5px;
                width: 100%;
                height: 100%;

                .row {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;

                    .name {
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: nowrap;
                    }
                }
            }
        }
    }
}
